package com.mspbots.core.account.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mspbots.core.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * com.mspbots.core.account.model.TenantAccount
 *
 * @author Jason
 * @date 2019/12/10
 **/
@Data
@NoArgsConstructor
@TableName(value = "tenant_account", autoResultMap = true)
public class TenantAccount extends BaseEntity {

    private Long id;
    private Long tenantId;
    private String username;
    private String password;
    private String email;
    private Long avatar;
    private Long departmentId;
    private LocalDateTime updateTime;
    private LocalDateTime createTime;
    private LocalDateTime lastLoginTime;
    private Long lockFlag;
    private Boolean delFlag;


    @Builder
    public TenantAccount(Long id, Long tenantId, String username,
                         String password, String email, Long avatar,
                         Long departmentId, LocalDateTime updateTime,
                         LocalDateTime createTime, LocalDateTime lastLoginTime,
                         Long lockFlag, Boolean delFlag) {
        this.id = id;
        this.tenantId = tenantId;
        this.username = username;
        this.password = password;
        this.email = email;
        this.avatar = avatar;
        this.departmentId = departmentId;
        this.updateTime = updateTime;
        this.createTime = createTime;
        this.lastLoginTime = lastLoginTime;
        this.lockFlag = lockFlag;
        this.delFlag = delFlag;
    }

}
